﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Facebook._Default" %>

<asp:Content ID="scripts" runat="server" ContentPlaceHolderID="scriptsHodler">
<script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>
<script type="text/javascript" src="Scripts/relyons.js"></script>
<script type="text/javascript" src="Scripts/Utilities.js"></script>
<script type="text/javascript" src="Scripts/facebookReceiver.js"></script>
<script type="text/javascript" src="/Scripts/GenerateRequestUrl.js"></script>
<script type="text/javascript" src="Scripts/FacebookActions.js"></script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
    <div class="et-facebook-login"></div>
</asp:Content>
<asp:Content ID="codeBinding" runat="server" ContentPlaceHolderID="executingInlineJavascript">
<script type="text/javascript">
/*<![CDATA[*/
var receiver = new etui.ui.FacebookReceiver();
var login = new etui.ui.LoginAction();
var myData = new etui.ui.FetchInfoAction();
var param = {
    senderPage: location.protocol + "\/\/" + location.host + "/ExternalUser/autologin.aspx"
};
receiver.addAction(login, "div.et-facebook-login", param);
receiver.addAction(myData, "div.et-facebook-login", param);
receiver.init();
myData.sendRequest();
//]]>
</script>
</asp:Content>
